Create Workspace Public API
Create Workspace Public API
Path Parameters
workspaceName string required
application/json
Request Body
tenantName
stringRequired
Name of the workspace.
adminEmail
stringRequired
Email id of the admin.
Sample Request Body
{
"tenantName" : "Sample",
"adminEmail" : "groot@gmail.com"
}
HTTP STATUS CODE SUMMARY | ||
---|---|---|
200 - OK | Successfully done. | |
201 - OK | Successfully created. | |
400 - Bad Request | The request was unacceptable, often due to missing a required parameter. | |
401 - Unauthorized | Unauthorized access try with correct access. | |
402 - Request Failed | The parameters were valid but the request failed. | |
403 - Forbidden | The Application doesn't have permissions to perform the request. | |
404 - Not Found | The requested resource doesn't exist | |
500 - Server Errors | Something went wrong on ezto auth's end. (These are rare.) | |
503 - Server Errors | Service temporarily unavailable |
POST /auth/realms/api/:workspaceName
Request
Request
curl / cURL
curl -L -g -X POST 'https://{{host}}/auth/realms/api/:workspaceName' \
-H 'Content-Type: application/json' \
--data-raw '{
"tenantName": "{{tenantName}}",
"adminEmail": "{{adminEmail}"
}'
python / requests
curl -L -g -X POST 'https://{{host}}/auth/realms/api/:workspaceName' \
-H 'Content-Type: application/json' \
--data-raw '{
"tenantName": "{{tenantName}}",
"adminEmail": "{{adminEmail}"
}'
go / native
curl -L -g -X POST 'https://{{host}}/auth/realms/api/:workspaceName' \
-H 'Content-Type: application/json' \
--data-raw '{
"tenantName": "{{tenantName}}",
"adminEmail": "{{adminEmail}"
}'
nodejs / axios
curl -L -g -X POST 'https://{{host}}/auth/realms/api/:workspaceName' \
-H 'Content-Type: application/json' \
--data-raw '{
"tenantName": "{{tenantName}}",
"adminEmail": "{{adminEmail}"
}'
ruby / Net::HTTP
curl -L -g -X POST 'https://{{host}}/auth/realms/api/:workspaceName' \
-H 'Content-Type: application/json' \
--data-raw '{
"tenantName": "{{tenantName}}",
"adminEmail": "{{adminEmail}"
}'
csharp / RestSharp
curl -L -g -X POST 'https://{{host}}/auth/realms/api/:workspaceName' \
-H 'Content-Type: application/json' \
--data-raw '{
"tenantName": "{{tenantName}}",
"adminEmail": "{{adminEmail}"
}'
php / cURL
curl -L -g -X POST 'https://{{host}}/auth/realms/api/:workspaceName' \
-H 'Content-Type: application/json' \
--data-raw '{
"tenantName": "{{tenantName}}",
"adminEmail": "{{adminEmail}"
}'
java / OkHttp
curl -L -g -X POST 'https://{{host}}/auth/realms/api/:workspaceName' \
-H 'Content-Type: application/json' \
--data-raw '{
"tenantName": "{{tenantName}}",
"adminEmail": "{{adminEmail}"
}'